get count laravel

73

get count laravel -

$count = Model::where('status','=','1')->count();

laravel count -

use Illuminate\Support\Facades\DB;
 
$users = DB::table('users')->count();

Comments

Submit
0 Comments